package com.woniuxy.owner.controller;



import com.woniuxy.owner.pojo.OwnerFamily;
import com.woniuxy.owner.service.OwnerFamilyService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@AllArgsConstructor
public class OwnerFamilyController {
    private OwnerFamilyService ownerFamilyService;

    @GetMapping("/family")
    public List<OwnerFamily> family(){
        return ownerFamilyService.family();
    }
}
